package org.web.ssm.service;

import org.web.ssm.dto.StatisticsModel;
import org.web.ssm.model.OrderDetail;
import org.web.ssm.model.User;
import org.web.ssm.model.queryVo.BaseQuery;

import java.util.List;

/**
 * Created by LUOLIANG on 2016/6/13.
 */
public interface IOrderService {
    OrderDetail getOrderByid(String orderid);

    /**
     * 根据当前用户和type的查询不同时间段的订单
     *
     * @param userid
     * @param type
     * @return
     */
    List<OrderDetail> getAllOrderByUser(String userid, String type);

    /**
     * 获取用户消费的统计数据
     *
     * @param userid
     * @return
     */
    StatisticsModel getStatisData(String userid);

    BaseQuery<OrderDetail> orderlistByUser(int pageSize, int pageCurrent, int userId);

    void insertOrder(OrderDetail orderDetail);

    String messageOrder(String str, String incometype, String ToUserName);
}
